package com.ls.controller.example.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName updateStatusModel
 * @Description 修改示例启用状态model
 * @Author pengyu
 * @Date 2024/6/27 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class updateStatusModel {
    @NotNull(message = "示例id不能为空")
    private Long exampleId;
    @NotNull(message = "启用状态不能为空")
    @Max(value = 1)
    @Min(value = 0)
    private Integer validFlag;
}
